package com.senven.role.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.senven.common.entity.Role;
import com.senven.common.entity.User;
import com.senven.common.vo.CommonResult;
import com.senven.role.vo.RoleVo;

import java.util.List;

public interface RoleSerive  {

    List<Role> findAllRole();

    CommonResult findInfo(Integer currentPage, Integer pageSize, Role role);

    CommonResult updateRole(Role role);

    CommonResult findRoleidByUserid(String userid);



    CommonResult selectRole(Integer currentPage, Integer pageSize, RoleVo roleVo);

    CommonResult insert(Role role);

    CommonResult delete(Integer roleid);

    CommonResult update(Role roleid);

}
